package ru.exigenservices.intern.webapp.action;

import org.springframework.beans.factory.annotation.Required;
import ru.exigenservices.intern.model.Contact;
import ru.exigenservices.intern.service.AddressBookService;

import java.util.List;

public class ContactList {
    public List<Contact> getContacts() {
        return addressBookService.getContacts();
    }

    @Required
    public void setAddressBookService(AddressBookService addressBookService) {
        this.addressBookService = addressBookService;
    }

    private AddressBookService addressBookService;
}
